import axios from 'axios'
import request from '../util/request.js'

// 登录接口
export function login(loginParams) {
	return request({
		url: '/login',
		method: 'get',
		params: loginParams
	})
}

// 发送邮箱接口
export function sendemail(mailParams) {
	return request({
		url: '/sendMail',
		method: 'post',
		data: mailParams
	})
}

// 注册接口
export function register(registerParams) {
	return request({
		url: 'register',
		method: 'post',
		data: registerParams
	})
}